import service from '@/utils/request.js';
import Qs from 'qs'
//同意管理程序的请求代码
//吧所有的axios请求都一个个封装
//登录
function login_list(params = {}) {
    // return axios.post('user/isUserLogin', params);
    return service.post('/user/isUserLogin', Qs.stringify(params));
}
//注册
function register_list(params = {}) {
    return service.post('/user/registerUser', Qs.stringify(params));
}
//判断用户名是否被注册
function find_user(params = {}) {
    return service.post('/user/findUserByUsername', Qs.stringify(params))
}
//判断手机号是否被注册
function find_phone(params = {}) {
    return service.post('/user/isRegistPhone', Qs.stringify(params))
}
//验证码发送
function code_send(params = {}) {
    return service.post('/user/sendCode', Qs.stringify(params));
}
//验证码比对
function code_find(params = {}) {
    return service.post('/user/checkCode', Qs.stringify(params));
}

//账户卡的信息返回
function car_xinxi(params = {}) {
    return service.post('/user/findUserAccountInfo', Qs.stringify(params));
}

//手机缴费
function phone_pay(params = {}) {
    return service.post('/user/PayPhoneBill', Qs.stringify(params));
}
function card_yes(params = {}){
    return service.post('/creditCard/findCreditCard',Qs.stringify(params));
}


//抛出
export {
    login_list,
    register_list,
    find_user,
    find_phone,
    code_send,
    code_find,
    car_xinxi,
    phone_pay,
    card_yes
}